<?php
namespace app\wxpay\controller;

use tp5_lib\common\controller\TestBaseController;
use tp5_lib\wxpay\utility\WxPay;
use tp5_lib\wxpay\lib\WxPayConfig;
use tp5_lib\wxpay\utility\Notify;

class TestController extends TestBaseController
{
    public function precreate()
    {
        $wxpay=new WxPay();
        $wxpay->precreate("time-".time(),"1","测试");
    }
    public function onNotify()
    {
        $config = new WxPayConfig();
        $notify = new Notify();
        $notify->Handle($config, false);
    }
}
